<?php
	//Authentication
	if(!defined('CONFIG_FILE')){
		$url="./Index.php";
		include_once './Tool/Common/Redirect.php';
		exit();
	}
	
	//Database Connection 
	define("DB_HOST", "127.0.0.1");
	define("DB_PORT", "3306");
	define("DB_DATABASE_NAME", "eldercaredb");
	define("DB_USERNAME", "root");
	define("DB_PASSWORD", "");	
	
	//Database Log File Path
	define("DATABASE_LOG_PATH", 'C:/xampp/htdocs/SVN/db.log.txt');

	//Email Log File Path
	define("EMAIL_LOG_PATH", 'C:/xampp/htdocs/SVN/email.log.txt');

	//Token URL
	define("TOKEN_URL", 'http://localhost/SVN/');
	
	//Password Hash 
	define("PBKDF2_HASH_ALGORITHM", "sha256");
	define("PBKDF2_ITERATIONS", 1000);
	define("PBKDF2_SALT_BYTE_SIZE", 24);
	define("PBKDF2_HASH_BYTE_SIZE", 24);
	
	define("HASH_SECTIONS", 4);
	define("HASH_ALGORITHM_INDEX", 0);
	define("HASH_ITERATION_INDEX", 1);
	define("HASH_SALT_INDEX", 2);
	define("HASH_PBKDF2_INDEX", 3);
	
	//Email Account
	define("EMAIL_ADDRESS", "ntuceldercarecentre@gmail.com");
	define("EMAIL_PASSWORD", "ITsupport");

	//Error Reporting
	ini_set("error_reporting", "true");
	error_reporting(E_ALL|E_STRCT);
?>